﻿using Newtonsoft.Json;
using System.Collections.Generic;

namespace Wicture.EPC.Service.Etka
{
    public class SubGroupDescription : VinFilter
    {
        public string subGroupId { get; set; }
        public string TSBen { get; set; }
        public string TSBem { get; set; }
        public string TSMoa { get; set; }
        public string description { get; set; }

        public SubGroupDescription()
        {

        }

        public SubGroupDescription(dynamic item)
        {
            subGroupId = item.subGroupId;
            TSBen = item.TSBen;
            TSBem = item.TSBem;
            TSMoa = item.TSMoa;
            uou = item.uou;
            startYear = item.startYear;
            endYear = item.endYear;
            countrySymbol = item.countrySymbol;
            description = item.description;
            getriebes = item.getriebes;
            katalogId = item.katalogId;
            timeFilter = item.timeFilter;
            modelFilter = item.modelFilter;
            prFilter = item.prFilter;
            salesType = item.salesType;
            motorFilter = item.motorFilter;
            interiorColourType = item.interiorColourType;
            prFilter = item.prFilter;
            featureCodes = item.featureCodes;
            vkk = item.vkk;
        }
    }

    public partial class Query_PartsResult : VinFilter
    {
        [JsonIgnore]
        public string TSBem { get; set; }
        [JsonIgnore]
        public string TSMoa { get; set; }
    }


    public partial class SubGroupPart : VinFilter
    {
        public string subGroupId { get; set; }
        public string partCode { get; set; }
    }


    public class VinFilter
    {
        [JsonIgnore]
        public string countrySymbol { get; set; }
        [JsonIgnore]
        public string getriebes { get; set; }
        [JsonIgnore]
        public int katalogId { get; set; }
        [JsonIgnore]
        public string timeFilter { get; set; }
        [JsonIgnore]
        public string modelFilter { get; set; }
        [JsonIgnore]
        public string prFilter { get; set; }
        [JsonIgnore]
        public string salesType { get; set; }
        [JsonIgnore]
        public string interiorColourType { set; get; }
        [JsonIgnore]
        public string colourType { set; get; }
        [JsonIgnore]
        public string motorFilter { set; get; }
        [JsonIgnore]
        public string featureCodes { set; get; }
        [JsonIgnore]
        public string uou { set; get; }
        [JsonIgnore]
        public string vkk { set; get; }
        [JsonIgnore]
        public bool isPart { set; get; } = true;
        [JsonIgnore]
        public int? startYear { get; set; }
        [JsonIgnore]
        public int? endYear { get; set; }
        [JsonIgnore]
        public string component { get; set; }
    }
}
